package satir.testcase.framework;

import org.json.JSONObject;
import org.junit.Before;
import org.junit.Test;

import satir.framework.JSONIOPerformer;
import satir.framework.JSONIOPerformer.JSONIOPerformerJSONDecodeException;
import satir.framework.JSONIOPerformer.JSONIOPerformerReadException;

import junit.framework.TestCase;

public class JSONIOPerformer_retrieve_1 extends TestCase {

	private JSONIOPerformer jsonIO;

	@Before
	public void setUp() {
		try {
			jsonIO = new JSONIOPerformer("HelloWorld.json");
		} catch (JSONIOPerformerReadException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (JSONIOPerformerJSONDecodeException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	@Test
	public void testRetrieve() {
		JSONObject jsonObject = jsonIO.retrieve();
		assertNotNull(jsonObject);
	}
}
